package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.HarvestMapper;
import com.bootdo.blog.domain.HarvestDO;
import com.bootdo.blog.service.HarvestService;



@Service
public class HarvestServiceImpl implements HarvestService {
	@Autowired
	private HarvestMapper harvestMapper;
	
	@Override
	public HarvestDO get(Integer harvestId){
		return harvestMapper.get(harvestId);
	}
	
	@Override
	public List<HarvestDO> list(Map<String, Object> map){
		return harvestMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return harvestMapper.count(map);
	}
	
	@Override
	public int save(HarvestDO harvest){
		return harvestMapper.save(harvest);
	}
	
	@Override
	public int update(HarvestDO harvest){
		return harvestMapper.update(harvest);
	}
	
	@Override
	public int remove(Integer harvestId){
		return harvestMapper.remove(harvestId);
	}
	
	@Override
	public int batchRemove(Integer[] harvestIds){
		return harvestMapper.batchRemove(harvestIds);
	}
	
}
